import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;


public class Leitor {
	
	public String[] ler(String lista,String arq){
		String[] str= new String[200];
		String line = new String();
		int i=0;
		try {
		        BufferedReader in = new BufferedReader(new FileReader(arq));
		        while (in.ready()) {
		        	line = in.readLine();
		        	if (lista.equals("!TUDO")){
		        		str[i] = line;
		        		i++;
		        	}
		        	if (lista.equals("")){
		        		if (!(line.contains("<"))){
		        		str[i] = line;
		        		i++;
		        		}
		        	}
		        	else{ 
		        		if (line.contains(lista + "<")){
		        			str[i] = line.split("<")[1];
		        			i++;
		        		}
		        	}
		        }
		        in.close();
		          
		    } catch (IOException e) {
		    }
		 return str;
	}
}
